package com.justenholter.text {
	
	import com.justenholter.text.TextEffect;
	import flash.utils.Dictionary;
	
	internal class TextEffectManager {
		
		private static var _textEffects	:Dictionary = new Dictionary(true);
	 
		/**
		 * 
		 * @param	textEffect
		 */
		public static function add(textEffect:TextEffect):void {
			
			if(textEffect.target in _textEffects) _textEffects[textEffect.target].stop();
			 _textEffects[textEffect.target] = textEffect;
		}  
		
		/**
		 * 
		 * @param	textEffect
		 */
		public static function remove(textEffect:TextEffect):void {
			delete _textEffects[textEffect.target];
		}
	}
}